home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / powervww / pvdesk.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-05  |  2.3 KB  |  62 lines

  1. //  ____________________________________________________
  2. // |                                                    |
  3. // |  Project:     POWER VIEW INTERFACE                 |
  4. // |  File:        PVDESK.H                             |
  5. // |  Compiler:    WPP386 (10.6)                        |
  6. // |                                                    |
  7. // |  Subject:     Desktop support interface            |
  8. // |                                                    |
  9. // |  Author:      Emil Dotchevski                      |
  10. // |____________________________________________________|
  11. //
  12. // E-mail: zajo@geocities.com
  13. // URL:    http://www.geocities.com/SiliconValley/Bay/3577
  14.  
  15. void __init_desktop( void );
  16.  
  17. #ifndef _PVDESK_H
  18. #define _PVDESK_H
  19. class Tdesktop : public Titem
  20. {
  21. //<R> means read-only
  22. //<R/W> means read/write
  23.   public:
  24.     uint max_tileable; //<R/W> max number of subitems that can be tiled
  25.     boolean tile_columns; //<R/W> tile columns first, or not
  26.     int iconize_x; //<R> initial x of the subitem just iconized
  27.     int iconize_y; //<R> initial y of the subitem just iconized
  28.     int tile_rect_x; //<R/W> define the rectangle for tile/cascade
  29.     int tile_rect_y; //<R/W> the subitems. The subitems are tiled or
  30.     int tile_rect_xl; //<R/W> cascaded inside this rectangular area
  31.     int tile_rect_yl; //<R/W> only.
  32.     Tdesktop( void );
  33.     virtual void resize( int _xl, int _yl );
  34.     virtual void put_in( Titem *v, int _x, int _y );
  35.     virtual boolean remove( Titem *v );
  36.     virtual void tab_next( int direction );
  37.     void update_commands( void );
  38.     void close_all( void );
  39.     void tile( void ); //tile tileable subitems
  40.     void cascade( void ); //cascade tileable subitems
  41.     boolean arrange_icons( void ); //arrange icoized subitems
  42.     void arrange_one_icon( Titem *p ); //arrange one iconized subitem
  43.  
  44.   protected:
  45.     virtual void calc_bounds( int delta_xl, int delta_yl );
  46.     virtual void event_handler( Tevent &ev );
  47.  
  48.   private:
  49.     void do_tile( Titem *p ); //use recursion to go back trough the items
  50.     void do_cascade( Titem *p, int _x, int _y ); //use recursion to go back trough the items
  51.     void list_all( void );
  52. };
  53. #endif
  54.  
  55. void insert_window( Titem *item, int x, int y );
  56.  
  57. #ifdef DECLARE_PVDESK
  58. Tdesktop *desktop = NULL;
  59. #else
  60. extern Tdesktop *desktop;
  61. #endif
  62.